<template>
    <div class="header">
        <i class="iconfont icon-back" @click="handleBack"></i>
        <slot></slot>
    </div>
</template>
<script>
import '../../assets/iconfont/iconfont.css'
export default {
  methods: {
    handleBack () {
      this.$router.back()
    }
  }
}
</script>
<style lang="scss" scoped>
.header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 5.5rem;
    line-height: 5.5rem;
    background: white;
    text-align: center;
    font-size: 2.125rem;
    i{
        font-size: 3.75rem;
        position:fixed;
        top:0;
        left:.625rem;
        height: 5.5rem;
        line-height: 5.5rem;
    }
}

</style>
